<section class="wrapper">


	<div class="col-lg-12">
		<!--work progress start-->
		<section class="panel">

			<div class="inbox-head">
				
				<h3>ALL MEMBER</h3>
				<a title="Add User" href="<?= base_url();?>secure/member/user/add"><button type="button" class="btn btn-danger pull-right">
					<i class="icon-plus"></i>
				</button></a>
				
			</div>


			<div class="panel-body">
				
				<?php if($member){?>
				<table class="table table-striped table-advance table-hover">
					<thead>
						<tr>
							<th><i class="icon-bullhorn"></i> Member Name</th>
							<th><i class=" icon-bookmark"></i> Email</th>
							<th><i class=" icon-bookmark"></i> Status</th>
							<th width="20%"><i class=" icon-edit"></i>Action</th>
						</tr>
					</thead>
					<tbody>
						
						<?php foreach ($member as $member):?>
						<tr>
							<td><strong><?= $member->name; ?></strong></td>
							<td><?= $member->email; ?></td>
							
							<?php if($member->status == '51'){?>
							<td><button title="Active" class="btn btn-success btn-xs">
									<i class="icon-ok "></i>
								</button></td>
							<td>
							<?php }?>
							<?php if($member->status == '1'){?>
							<td><button title="Inactive" class="btn btn-danger btn-xs">
									<i class="icon-remove "></i>
								</button></td>
							<td>
							<?php }?>
							
							
								<a title="Edit" href="<?= base_url();?>secure/member/user/edit/<?= $member->id;?>"><button class="btn btn-primary btn-xs">
								<i class="icon-pencil"></i>
								</button></a>
								<a title="Delete" href="<?= base_url();?>secure/member/user/delete/<?= $member->id;?>" class="btn btn-danger btn-xs" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Not allowed in Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');"  >
									<i class="icon-trash "></i>
								</a>
								
								
								
								
								
								
								
								
							</td>
						</tr>
						<?php endforeach;?>
						
					</tbody>
					
				</table>
				<?php }else{?>
				<div class='alert alert-danger'>
  Opps! No Data found....
</div>
				<?php }?>
			</div>

		</section>
		<!--work progress end-->
	</div>

</section>




				